package com.example.chinesenation.Controller;

import com.example.chinesenation.Response.ServerResponse;
import com.example.chinesenation.VO.MainPage.VOArticleList;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author sakuraFallingDown
 * @version 1.0
 * @date 2021/4/9 23:23
 */
@Controller
@ResponseBody
@RequestMapping("/background")
@CrossOrigin
public class BackgroundController {//后台管理系统（暂未开发）

    public ServerResponse<List<VOArticleList>> AllArticle(@RequestParam("size")int size,
                                                          @RequestParam("current")int current){
        return ServerResponse.createSuccessResponse("请求成功",null);
    }
}
